import {Service} from "adajs";

class LodgeService extends Service {
    defaultData() {
        return {
            links: [
                [
                    {name: "学习专栏", link: "/admin/study/xxzl", image: "xxzl"},
                    {name: "我的书架", link: "/admin/study/wdsj", image: "wdsj"},
                ],
                [
                    {name: "添加正能量", link: "/admin/study/power", image: "tjznl"},
                    {name: "信息推荐", link: "/admin/study/recommend", image: "xxtj"}
                ],
                [
                    {name: "学习与思考", link: "/admin/study/think", image: "xxsk"},
                    {name: "友情连接", link: "/admin/study/yqlj", image: "yqlj"}
                ]
            ]
        };
    }

    onupdate(current, data) {
        Object.assign(current, data);
    }
}

export default LodgeService;